package functions 
{	import functions.FunctionNode;	/**
	 * @author admin
	 */
	public class CdrFunctionNode extends FunctionNode 
	{
		public function CdrFunctionNode()
		{
			funcname = "cdr";	
			functiontype = SPECIALFUNCTION;
		}
		
		override public function getValue( xml : XML, scope : Object ) : XML
		{
			var newXML : XML = <list />;
			var kids : XMLList = xml.children();
			for( var i : int = 1;i < kids.length(); i++)
			{
				var childXML : XML = kids[ i ];
				newXML.appendChild(childXML.copy());
			}
			return newXML;
		}	}}